<template>
  <div class="baseFile">
      <!-- 按钮 -->
      <div class="btns">
          <el-button type="primary" size="small">新增</el-button>
      </div>

      <!-- /按钮 -->
     <!-- {{applications}}  -->
      <!-- 表格 -->   
    <el-table  :data="baseFile">

      <el-table-column label="ID" prop="id" align="center" ></el-table-column>
      <el-table-column label="名字" prop="fileName" align="center"  ></el-table-column>
      <el-table-column label="组名" prop="groupName" align="center" ></el-table-column>
      <el-table-column label="上传时间" prop="uploadTime" align="center" ></el-table-column>
      <el-table-column label="退出时间" prop="extName" align="center" ></el-table-column>
      <el-table-column label="文件大小" prop="fileSize" align="center" ></el-table-column>
      <el-table-column label="文件类型" prop="fileType" align="center" ></el-table-column>
    </el-table>


      <!-- /表格 -->
  </div>
    
</template>

<script>
import {get,post} from '@/utils/request'
export default {
    //页面数据
    data(){
        return{
            baseFile:[]
        }
    },
    //页面渲染的时候会调用的函数
    created(){
       this.loadBaseFile();
    },
    //所有的方法
    methods:{
        loadBaseFile(){
            let url='http://localhost:8888/base_file/select'
            get(url).then((resp)=>{
                this.baseFile=resp.data;
            })
        }
    }
}
</script>

<style scoped>

</style>
